package com.zlq.cn.api;

public enum ApiCodeEnum {
    SUCCESS("200", "接口请求成功"),
    API_ERROR("201", "接口抛出异常"),
    TOKEN_INVALID("401", "token失效"),
    SERVICE_ERROR("500", "服务器异常"),
    NEED_INVITATION("4000", "绑定用户需要提示邀请");

    private String code;
    private String msg;

    ApiCodeEnum(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
